﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/WebMaster/MasterPage.master" Theme="WebMaster" CodeFile="Photo.aspx.cs" Inherits="webapp4U.UI.Marquee" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>

<asp:Content ContentPlaceHolderID="PageContent" runat="server">

<uc:Title runat="server" ResourceKey='Photo'  />


  <table border="0" align="center">
    <tr>
        <td style="padding-top:15pt; color:Red" class="text" align="center">
            <b>Cập Nhật Hình Ảnh Slide Show</b>
        </td>
    </tr>
    <tr>
        <td align="center">
            <br />
            <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="blue"></asp:Label>
        </td>
    </tr>
     <tr>
        <td style="padding-top:15pt; line-height:20px;" class="text" align="center">
            <b>
                <asp:FileUpload runat="server" ID="PhotoFile" CssClass="Textbox" />
                <asp:Button runat="server" ID="btSave" Text=" Upload " OnClick="btSave_Click" />
            </b>
            <br />
            (File hình phải là kiểu .jpg và kích thước là 168 x 175)
        </td>
    </tr>

    <tr>
        <td align="center">
           <asp:DataList ID="ItemsDataList" runat="server" Width="100%" 
              RepeatDirection="Horizontal" 
              EnableViewState="False" 
              CellPadding="10" 
              ItemStyle-HorizontalAlign="left"
              RepeatColumns="3">
                <ItemTemplate>
                    <table border="0" align="left"  style="table-layout:fixed;">
                        <tr>
                            <td class="BorderImage" bgcolor="white" width="150" height="150" align="center">
                            <webapp4U:ImageObject
                                BorderStyle="solid" 
                                BorderWidth="2px" 
                                BorderColor="white" 
                                ID="img1" runat="server" 
                                Width = "150px"
                                ImagePath='<%# Globals.ApplicationPath  + "UserUpload/SlideShow/" %>'
                                ImageName='<%#	Container.DataItem %>'/>
                            </td>
                        </tr>
                        <tr>
				            <td align="center" style="padding-top:3pt; padding-bottom:10px;" valign="top">
				                 <a href="?Action=Delete&Image=<%#	Container.DataItem %>" OnClick="return confirm('Bạn thật sự muốn xóa hình này?')">[xóa]</a>
				            </td>
				        </tr>
                    </table>
                </ItemTemplate>
              </asp:DataList>
        </td>
    </tr>
</table>                
</asp:Content>